<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" readonly  class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sn" readonly  class="form-control" name="row[sn]" type="text" value="{$row.sn|htmlentities}">

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-username" readonly   class="form-control"  name="row[username]" type="text" value="{$row.username|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Carbon_result')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-carbon_result" readonly class="form-control" name="row[carbon_result]" type="text" value="{$row.carbon_result|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Carbon_factor_result')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-carbon_factor_result" readonly   class="form-control" name="row[carbon_factor_result]" type="text" value="{$row.carbon_factor_result|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Carbon_factor_result_kg')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-carbon_factor_result_kg" readonly   class="form-control" name="row[carbon_factor_result_kg]" type="text" value="{$row.carbon_factor_result_kg|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Unit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-unit" readonly  class="form-control" name="row[unit]" type="text" value="{$row.unit|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" readonly class="form-control" size="50" name="row[images]" type="hidden" value="{$row.images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" readonly  class="form-control" name="row[price]" type="text" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sales')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sales" readonly  class="form-control" name="row[sales]" type="text" value="{$row.sales|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if $row.type == 1}
            <input id="c-type" readonly  class="form-control" name="row[type]" type="text" value="产品">
            {else /}
            <input id="c-type" readonly  class="form-control" name="row[type]" type="text" value="原材料">
            {/if}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_account')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if $row.is_account == 1}
            <input id="c-is_account" readonly  class="form-control" name="row[is_account]" type="text" value="已认证">
            {elseif condition="$row.is_account eq 2"/}
            <input id="c-is_account" readonly  class="form-control" name="row[is_account]" type="text" value="已驳回">
            {else /}
            <input id="c-is_account" readonly  class="form-control" name="row[is_account]" type="text" value="未认证">
            {/if}

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Account_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-account_time" readonly  class="form-control" name="row[account_time]" type="text" value="{$row.account_time|htmlentities}">
        </div>
    </div>
    {if $row.is_account == 2}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Account_reason')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-account_reason" readonly  class="form-control" name="row[account_reason]" type="text" value="{$row.account_reason|htmlentities}">
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_authority')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if $row.is_authority == 1}
            <input id="c-is_authority" readonly  class="form-control" name="row[is_authority]" type="text" value="已认证">
            {elseif condition="$row.is_authority eq 2"/}
            <input id="c-is_authority" readonly  class="form-control" name="row[is_authority]" type="text" value="已驳回">
            {else /}
            <input id="c-is_authority" readonly  class="form-control" name="row[is_authority]" type="text" value="未认证">
            {/if}

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Authority_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-authority_time" readonly  class="form-control" name="row[authority_time]" type="text" value="{$row.authority_time|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Product_review')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if $row.product_review == 1}
            <input id="c-product_review" readonly  class="form-control" name="row[product_review]" type="text" value="已认证">
            {elseif condition="$row.product_review eq 2"/}
            <input id="c-product_review" readonly  class="form-control" name="row[product_review]" type="text" value="已驳回">
            {else /}
            <input id="c-product_review" readonly  class="form-control" name="row[product_review]" type="text" value="未认证">
            {/if}
        </div>
    </div>
    <div class="form-group" >
        <label class="control-label col-xs-12 col-sm-2">{:__('Review_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-review_time" readonly  class="form-control" name="row[review_time]" type="text" value="{$row.review_time|htmlentities}">
        </div>
    </div>
    {if $row.product_review == 2}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Review_reason')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-review_reason" readonly  class="form-control" name="row[review_reason]" type="text" value="{$row.review_reason|htmlentities}">
        </div>
    </div>
    {/if}

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>
        </div>
    </div>
</form>
